package ooday01.practise;

public class Car {
    private String brand;
    private double price;
    private CarColor color;

    public Car(){

    }
    public Car(String brand,double price,CarColor color){
        this.brand=brand;
        this.price=price;
        this.color=color;
    }

    public void start(){
        System.out.println(color+"的"+brand+"牌价格为"+price+"车启动了");
    }
    public void run(){
        System.out.println(color+"的"+brand+"牌价格为"+price+"车跑了");
    }
    public void stop(){
        System.out.println(color+"的"+brand+"牌价格为"+price+"车停止了");
    }

}
